get selected item datagrid wpf

53

get selected item datagrid wpf -

private void Row_DoubleClick(object sender, MouseButtonEventArgs e)
{
    ClassName classObj = dataGridName.SelectedItem as ClassName;
    string id = classObj.ID;
}

Comments

Submit
0 Comments